﻿@{
    ViewBag.Title = "医院与科室管理";
}
<table class="width" style="min-height: 800px;">
    <tr>
        <td width="250px" valign="top">
            <div id="treeview">
                @{Html.RenderAction("Hospitals", "SystemMgr");}
            </div>
        </td>
        <td valign="top">
            <div id="listview">
                <h2>&lt-- 请打开左边医院、科室选择所包含的常规随访进行管理，或在其上点击右键进行维护管理。</h2>
            </div>
        </td>

    </tr>
</table>
<div style="display: none">
    <script type="text/javascript">
        $.contextMenu.defaults({
            menuStyle: {
                border: "2px solid #535353",
                margin: "1px"
                , "box-shadow": "2px 2px 2px 2px #f1f1f1"
                , padding: "2px"
            },
            shadow: true
        });

    </script>
    <style type="text/css">
        .menu-title
        {
            font-weight:bold;
            background-color:#535353;
            color:White;
            margin:2px;
            text-align:center;
            font-size:medium;
            }
    </style>
    <div class="contextMenu" id="myMenuLv0">
        <ul><div class='menu-title'>全部医院</div>
            <li id="NewLv1">新建医院</li>
        </ul>
    </div>
    <div class="contextMenu" id="myMenuLv1">
        <ul><div class='menu-title'>医院管理</div>
            <li id="NewLv2">新建科室</li>
            <li id="EditLv1">修改医院信息</li>
            <li id="DelLv1">删除医院</li>
        </ul>
    </div>
    <div class="contextMenu" id="myMenuLv2">
        <ul><div class='menu-title'>科室管理</div>
            <li id="NewLv3">新建下属病区</li>
            <li id="EditLv2">修改科室信息</li>
            <li id="DelLv2">删除科室</li>
        </ul>
    </div>

    <div class="contextMenu" id="myMenuLv3">
        <ul><div class='menu-title'>病区管理</div>
            <li id="NewLv4">新建常规随访</li>
            <li id="NewSF36">导入SF36随访</li>
            <li id="EditLv3">修改病区信息</li>
            <li id="DelLv3">删除病区</li>
        </ul>
    </div>

    <div class="contextMenu" id="myMenuLv4">
        <ul><div class='menu-title'>随访管理</div>
            <li id="EditLv4">修改随访信息</li>
            <li id="DelLv4">删除随访</li>
        </ul>
    </div>
@*    @using (Ajax.BeginForm(new AjaxOptions { HttpMethod = "Post", LoadingElementId="OnLoadingSpan",UpdateTargetId = "hospitals" }))
    {
        @Html.TextBox("act", "", new {id="actipt" })
        @Html.TextBox("sid", "", new {id="sidipt" })
        <input type="submit" value="submit" id="treemgrbtn" />
    }*@
    @*@Html.Partial("NewLink", new NewLink("hospitals", "HospAndDepartMgr", "Action", "详细内容") { RouterValues = new RouteValueDictionary(new { act = "@act", sid = "@sid" }) })*@
    @Ajax.ActionLink("修改", "#", null,
    new AjaxOptions()
    {   
        LoadingElementId="OnLoadingSpan",UpdateTargetId = "dialogbox",
        HttpMethod = "Get",
        InsertionMode = InsertionMode.Replace,
        OnComplete = "showDialog('" + "" + "',false);",
        OnFailure = "OnSiteError"
    }
    , new { id="EditLink"}
    )
    @Ajax.ActionLink("del", "#", null, new AjaxOptions() { LoadingElementId="OnLoadingSpan",UpdateTargetId = "treeview", OnFailure = "OnSiteError", Confirm = OnConfirmDel() }, new { id = "DelLink" })|

</div>
